﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using W.M.Materiel.Application.IServices;
using W.M.Materiel.Domain.Entity;

namespace W.M.Materiel.Read.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class Bom_item_relation_tableController : ControllerBase
    {
        private readonly IBom_item_relation_tableServices bom_Item_Relation_TableServices;

        public Bom_item_relation_tableController(IBom_item_relation_tableServices bom_Item_Relation_TableServices)
        {
            this.bom_Item_Relation_TableServices= bom_Item_Relation_TableServices;
        }

        /// <summary>
        /// 显示BOM和生产关系
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public IActionResult GetBom_Item_Relation_Table()
        {
            var list= bom_Item_Relation_TableServices.GetBom_Item_Relation_Table();
            return Ok(list);
        }


    }
}
